package com.whw.springboot.walk.mapper;

import com.whw.springboot.walk.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {


    int insertUser(User user);

    int insertUserAndUserInfo(User user);

    int deleteByPrimaryKey(String userId);

    List<User> selectAllUser();

    List<User> selectAllUserAndInfo();

    User selectByPrimaryKey(String userId);

    User selectByUserIdAndUserPwd(@Param("userId")String userId, @Param("userPwd")String userPwd);

    int updateByPrimaryKey(User user);

    int updateByPrimaryKeySelective(User user);

    int changePwd(@Param("userId")String user_id,@Param("userPwd")String user_pwd);

   User selectByUserIdOldStatus(String userId);


    User selectByPrimaryKey1(String userId);
}
